package com.watchme.license.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class JLDateUtil {
	private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

	public static String parseToString(Date date) {
		return sdf.format(date);
	}

	public static String getNowDate() {
		Date date = new Date();
		return parseToString(date);
	}

	public static String addDay(int n) {
		Calendar cal = Calendar.getInstance();
		cal.add(Calendar.DATE, 30);
		Date date = cal.getTime();
		return parseToString(date);
	}
}
